package liquidfs.data.ops;

import com.thoughtworks.xstream.annotations.*;

import liquidfs.data.*;

public abstract class AbstractModificationOperation<T> extends AbstractOperation<T> implements ModificationOperation<T> {

   @XStreamOmitField()
   private Notification notification;
   
   public AbstractModificationOperation(PeerDevice origin) {
      super(origin);
   }
   
   public AbstractModificationOperation(PeerDevice origin, Notification notification) {
      super(origin);
      this.notification = notification;
   }
   
   @Override
   public Notification getNotification () {
      return this.notification;
   }
   
   protected void setNotification (Notification notification) {
      this.notification = notification;
   }
   
   @Override
   public boolean isModification () {
      return true;
   }
}
